package com.wffz.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.io.Serializable;
import java.util.Date;

/**
 * @author sunlei
 * @className Bet
 * @Description
 * @date 2023-02-18 16:04
 **/
@Data
@TableName(value = "wffz_bet")
public class Bet implements Serializable ,Comparable<Bet> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Long userId;

    private String loginName;
    // 类型
    private String patchType;
    // 下注类型
    private String betType;

    private String periodCode;

    private Integer betNumber;
    // 绿色0，红色2，violet 1
    private String betColor;

    private Integer betMultiple;

    private Float betCost;

    private Date createTime;

    private String createBy;

    private Date updateTime;


    private String updateBy;


    private String remark;


    private Float winAmount;


    @Override
    public int compareTo(@NotNull Bet o) {
        return this.getBetCost().compareTo(o.getBetCost());
    }
}
